@extends('store-backend::layouts.bootstrap_modal')

@section('modal_class')
    modal-lg
@stop
@section('title')
    同步数据
@stop

@section('body')
    <div class="row">
        <div class="alert alert-success">
            正在同步数据，请稍后...
        </div>
    </div>
@stop


@section('footer')


    <script type="text/javascript">
        $(function () {
            $.post('{{route('admin.oms.file.syncData')}}', {file: '{{$file}}', type: '{{$type}}'}, function (result) {
                if(result.status){
                    swal({
                        title: "同步成功！",
                        text: "",
                        type: "success"
                    }, function () {
                        location.reload();
                    });
                }
            });
        });
    </script>

@stop






